/*Reset*/
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
ol,
dl,
dd,
figure,
menu,
input,
fieldset,
textarea,
button,
select,
table,
th,
td,
div,
span,
header,
nav,
footer {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: none;
}
h1,
h2,
h3,
h4,
h5,
h6,
b,
strong {
  font-weight: none;
  font-size: 100%;
}
table{
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
}
li {
  list-style: none;
}
em,
i {
  font-style: normal;
}
a,
a:visited {
  border: none;
  text-decoration: none;
}
a {
  color: #1f6aff;
}
fieldset,
img,
input {
  border: none;
}
input,
textarea {
  outline: none;
  resize: none;
  -webkit-appearance: none;
}
::-webkit-scrollbar {
  display: none;
}
html,
body,
#app {
  // height: 100%;
}
/* Common */
.flex {
  display: flex;
  justify-content: space-between;
}
.flex_one {
  flex: 1;
}
.flex_center_between{
  .flex(space-between, center);
}
.flex_center_start{
  .flex(flex-start, center);
}
.flex_center_center{
  .flex(center, center);
}
.flex_bottom{
  .flex(space-between, flex-end);
}

.fixed {
  position: fixed;
  z-index: 100;
}
.rise {
  color: @-color-red!important;
}
.drop {
  color: @-color-green!important;
}
.lightgray {
  color: #999;
}
.deepgray{
  color: #666
}
.mt8 {
  margin-top: 8px !important;
}
.mr20 {
  margin-right: 20px;
}
.pb15{
  padding-bottom: 15px !important;
}
.pb20{
  padding-bottom: 20px !important;
}
.w50 {
  width: 50%;
}
.w100 {
  width: 100px;
}
.w120 {
  width: 120px;
}
.w140 {
  width: 140px;
}
.minHeight100{
  min-height: 100px;
}
.fl{
  float: left;
}
.fr{
  float: right;
}
.hide{
  display: none;
}
//文本的字体颜色
.fc-red {
  color: @-color-red!important;
}
.fc-blue {
  color: @-color-primary!important;
}
.fc-small {
  font-size: 14px;
}
.tl {
  text-align: left;
}
.tr {
  text-align: right;
}
.tc {
  text-align: center;
}
.fb{
  font-weight: bold;
}
//连续英文强行折行
.break-word {
  word-wrap: break-word;
  break-word: break-all;
}
.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ellipsis-2 {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal !important;
  text-overflow: ellipsis;
  word-wrap: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.v-1px {
  .rem1px;
}
.v-1px-t {
  .rem1pxT;
}
.v-1px-b {
  .rem1pxB;
}
.v-1px-l {
  .rem1pxL;
}
.v-1px-r {
  .rem1pxR;
}
// 右箭头
.islink {
  padding-right: 24px;
  position: relative;
  &::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-width: 1px 1px 0 0; /*no*/
    border-style: solid;
    border-color: #999;
    transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
    position: absolute;
    right: 4px;
    top: calc(50% - 6px);
  }
  &.white::after{
    border-color: #fff;
  }
}
// 眼睛
.eye_icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("../images/icon/icon_common_hide@2x.png");
  &.open{
    background-image: url("../images/icon/icon_common_open@2x.png");
  }
  
}
// 页面元素refresh用的loading框
.refresh-box{
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  .van-loading{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
//输入框placeholder样式
input::-webkit-input-placeholder {
  color: #dbdbdb;
}

.hit{
  color: #1f6aff !important;
}
.chart_wrap-outer {
  padding: 0 15px 0 15px;
  position: relative;
  .curr_date-tooltip {
    display: flex;
    justify-content: space-between;
    font: 11px "Microsoft YaHei";
    color: #333;
    line-height: 32px;
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    .name{
      margin-right: 3px;
    }
  }
  .chart_wrap-tooltip{
    font: 11px "Microsoft YaHei";
    color: #333;
    padding: 10px 5px;
    border-radius: 5px;
    &.active{
      background: #d9ecfa;
    }
  }
  .chart_wrap {
    height: 260px;
    width: 100%;
  }
}
/* 卡片公用背景样式 */
.card_wrap {
  padding: 10px 10px 0 10px;
  &:last-child{
    padding-bottom: 10px;
  }
  .card_wrap-inner {
    background: #ffffff;
    border-radius: 4px;
    &.prod .card_wrap-info {
      .prod_title {
        font-size: 18px;
        color: #333;
        font-weight: bold;
        padding-top: 16px;
        padding-bottom: 5px;
        max-width: 255px;
        .code {
          font-size: 13px;
          color: #999999;
          font-weight: normal;
        }
      }
    }
    .card_wrap-title {
      font-size: 14px;
      color: #333;
      font-weight: bold;
      line-height: 40px;
      padding-left: 15px;
    }
    .card_wrap-info {
      padding: 0 15px;
      &.padtb {
        padding-top: 10px;
        padding-bottom: 10px;
      }
      &.fund_info{
        padding-bottom: 18px;
      }
      &.ipo{
        padding-bottom: 14px;
      }
      .yield {
        margin-top: 3px;
        font-size: 24px;
        color: #333;
        .yield_data {
          line-height: 37px;
          font-weight: bold;
          &.income {
            font-size: 18px;
          }
          &.normal {
            font-size: 14px;
            font-weight: normal;
          }
        }
      }
      
    }
  }
}

/* 面板公用背景样式 */
.panel_wrap {
  padding-top: 10px;
  .panel_wrap-inner {
    background: #ffffff;
    padding: 0 15px;
    .panel_wrap-title {
      font-size: 15px;
      font-weight: bold;
      padding: 15px 0;
      display: flex;
      justify-content: space-between;
      .title-right {
        font-size: 13px;
        font-weight: normal;
        color: #1f6aff;
      }
    }
  }
}
.panel_wrap-nopad {
  .panel_wrap-inner {
    background: #ffffff;
    padding: 0 15px;
  }
}

/*产品标签*/
.product_tags {
  font-size: 11px;
  color: #ff852e;
  // 标签超过时自动折行
  display: flex;
  flex-wrap: wrap;
  .product_tag {
    padding: 1px 3px;
    background: #fff;
    margin-top: 8px;
    .rem1px(#ffe7d5, 1px, 1px);
    &::after{
      z-index: inherit;
    }
    &:not(:last-child){
      margin-right: 8px;
    }
  }
  &.blue {
    color: @-color-primary;
    .product_tag {
      margin-right: 15px;
      padding: 0 8px;
      line-height: 20px;
      display: inline-block;
      background: @-color-primary-bg;
      .rem1px(@-color-primary-border, 1px, 1px);
    }
  }
  &.grey{
    justify-content: space-between;
    color: @-color-normal;
    .product_tag {
      padding: 0 8px;
      line-height: 20px;
      display: inline-block;
      .rem1px(@-color-br-light, 1px, 1px);
    }
  }
  &.ipo_fund{ 
    font-size: 12px;
    color: #999;
    .product_tag{
      margin-right: 0;
      padding: 1px 0;
      &::after{
        position: relative;
        height: 10px;
        background: #999;
        width: 0.02rem;
        display: inline-block;
        border: none;
        margin: 0 6px;
        vertical-align: -1px;
        transform: scale(1);
      }
      &:last-child{
        &::after{
          display: none;
        }
      }
    }
  }
}

/*列表 查看更多 */
.list_more {
  height: 40px;
  line-height: 40px;
  font-size: 13px;
  color: #1f6aff;
  text-align: center;
}
.swiper-container{
  transform: translate3d(0, 0, 0);
  overflow: hidden;
}
.swiper-slide{
  transform: translate3d(0, 0, 0);
}
/*轮播指示器*/
.swiper-container-horizontal {
  > .swiper-pagination-bullets {
    font-size: 0;
    bottom: 6px;
    .swiper-pagination-bullet {
      margin: 0 3px;
      width: 4px;
      height: 4px;
      background: #000;
      opacity: 0.1;
      border-radius: 4px;
    }
    .swiper-pagination-bullet-active {
      opacity: 0.3;
    }
  }
}

/*集合页两边留白的内容区域*/
.content_wrap {
  padding: 10px 15px 0 15px;
  .banner_product_wrap{ // 图片背景下面的阴影
    &::after{
      content: '';
      height: 20px;
      width: 100%;
      background-image: url("../images/jubaopen_banner_shadow@2x.png");
      display: block;
      background-size: contain;
    }
  }
  /*大图片banner中的产品信息，比如产品推荐、新客理财*/
  .banner_product_card {
    width: 100%;
    // height: 220px;
    height: 200px;
    background-size: contain;
    text-align: center;
    background-image: url("../images/jubaopen_banner_bg_noshadow@2x.png");
    .product_info {
      padding: 18px 30px 25px 30px;
      height: 100%;
      box-sizing: border-box;
      overflow: hidden;
      position: relative;
      .product_title {
        font-size: 18px;
        color: #333;
        font-weight: 600;
      }
      .yield {
        // margin-top: 3px;
        font-size: 26px;
        // color: #ff5952;
        .yield_data {
          line-height: 37px;
          font-weight: 600;
          &.rise{
            &::after{
              content: '';
              width: 14px;
              height: 20px;
              margin-left: 5px;
              display: inline-block;
              background-image: url("../images/icon/jubaopen_banner_up@2x.png");
              background-size: contain;
            }
          }
        }
        .yield_key {
          font-size: 12px;
          color: #999;
        }
      }
      .btn {
        // margin: 13px auto 0;
        background-image: linear-gradient(45deg, #ff644e 0%, #ff7f47 100%);
        border-radius: 19px;
        width: 179px;
        height: 38px;
        color: #fff;
        font-size: 18px;
        line-height: 38px;
        position: absolute;
        bottom: 25px;
        left: 50%;
        transform: translate(-50%, 0);
        overflow: hidden;
      }
    }
    &.ipo{
      height: 165px;
      background-image: url("../images/jubaopen_shoufa_card_bg_noshadow@2x.png");
      .field_text{
        font-size: 12px;
        color: #999;
      }
      .product_info{
        padding: 17px 15px 20px 15px;
        text-align: left;
        .product_title_wrap{
          .product_title{
            width: 156px;
          }
        }
        .btn{
          width: 315px;
          text-align: center;
        }
      }
    }
  }
}

/*集合页列表模块start===============*/
/*列表模块的title部分*/
.module_title_wrap {
  position: relative;
  background-size: cover;
  .title {
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    font-weight: 600;
    .sub_title {
      display: inline-block;
      margin-left: 8px;
      font-size: 12px;
      color: #666;
      font-weight: normal;
    }
    .more_icon {
      width: 18px;
      height: 18px;
      display: block;
      position: absolute;
      right: 15px;
      top: 10px;
      background-image: url("../images/icon/icon_common_arrow@2x.png");
      background-size: contain;
    }
    background-size: cover;
  }
}

/*列表模块的item_content部分*/
.module_item_content {
  padding: 10px 10px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  text-align: left;
  // min-height: 76px;
  position: relative;
  align-items: center;
  // overflow: hidden;
  .left_column {
    width: 135px;
    font-size: 22px;
    padding-right: 5px;
  }
  .right_column {
    // flex: 1;
    width: calc(100% - 140px);
    font-size: 15px;
    color: #333;
    .product_name {
      // font-weight: 600;
    }
  }
  .sub_text {
    color: #999;
    font-size: 12px;
    > span {
      margin-right: 5px;
    }
  }
}

/*列表模块（除高端产品外的） */
.list_module {
  margin-bottom: 15px;
  background-color: #fff;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  color: #333;
  font-size: 15px;
  .li_item {
    margin: 0 5px;
    position: relative;
    &:first-child {
      /*第一行有背景 */
      &::after {
        content: "";
        background-image: linear-gradient(
          180deg,
          #d6c5c5 0%,
          rgba(219, 219, 219, 0) 50%
        );
        border-radius: 4px;
        opacity: 0.15;
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
      }
    }
    &:last-child {
      .module_item_content {
        border-bottom: none;
        &.v-1px-b::after{
          content: none;
        }
      }
    }
    // flex布局下，1px层叠关系处理
    &:not(:nth-last-child(2)) .v-1px-b{
      z-index: auto;
      &::after{
        z-index: 2;
      }
    }
  }
}
/*集合页列表模块end===============*/

/*detail数据列表*/
.data_list {
  text-align: center;
  position: relative;
  .li_header {
    height: 35px;
    line-height: 35px;
    color: #999;
    font-size: 13px;
    background: #fff;
    position: relative;
    > div {
      &:last-child {
        text-align: right;
      }
      &:first-child {
        text-align: left;
      }
    }
  }
  .li_item {
    font-size: 14px;
    color: #333;
    // min-height: 40px;
    padding: 10px 0;
    align-items: center;
    > div {
      &:last-child {
        text-align: right;
      }
      &:first-child {
        text-align: left;
      }
    }
    .field_text {
      color: #666;
      font-size: 13px;
      line-height: 18px;
      display: block;
      position: relative;
    }
  }
}

/*固定头部的数据列表*/
.fix_data_list {
  .fix_header_wrap {
    width: 100%;
    height: 34px;
    // text-align: right;
    .fixed {
      width: 100%;
      .li_header{
        width: calc(100% - 30px);
      }
    }
  }
  .list_body_wrap {
    position: relative;
    min-height: 100px;
    background: #fff;
    // overflow: scroll;
  }
}
/*收益率key:value*/
.yield {
  .yield_value {
    font-size: 14px;
    color: #666;
  }
  .yield_key {
    font-size: 12px;
    color: #999;
  }
}
/*文本*/
.field_text{
  font-size: 11px;
  color:#999;
  line-height: 16px;
  display: inline-block;
  position: relative;
}
.mid_field_text{
  font-size: 12px;
  color: #999;
}
/*模仿van-cell样式*/
.v-cell {
  position: relative;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 15px;
  color: #333;
  font-size: 14px;
  line-height: 24px;
  background-color: #fff;
  &.islink {
    padding-right: 32px;
    &::after {
      right: 15px;
    }
  }
  .col {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    &:last-child {
      text-align: right;
    }
  }
  .title {
    font-size: 14px;
  }
  .value {
    font-size: 13px;
    color: #999;
  }
}
/*理财、定投管理页订单内容*/
.order-list-item {
  padding-bottom: 10px;
  &:not(:last-child) {
    .rem1pxB;
  }
  .title {
    font-size: 13px;
    padding: 10px 0;
    .btn {
      padding: 3px 10px;
      color: @-color-primary;
      background: #f1f6ff;
      .rem1px(#d3e2ff, 4px, 1px);
      &[disabled=disabled]{
        color: #999;
        background: #f6f7f8;
        &::after{
          border-color: #dbdbdb;
        }
      }
    }
  }
  .info {
    .field {
      font-size: 11px;
      color: #999;
    }
    .value {
      font-size: 14px;
    }
  }
  .info-ext {
    font-size: 13px;
    color: #999;
    line-height: 36px;
    background: #f8faff;
    border-radius: 2px;
    margin: 10px 0 5px;
    padding: 0 10px;
  }
}
/*购买、定投等页面底部按钮*/
.footer-box {
  height: 50px;
  .footer.fixed {
    width: 100%;
    left: 0;
    bottom: 0;
    line-height: 50px;
    font-size: 18px;
    text-align: center;
    background: #fff;
    a.bg {
      color: #fff;
      background-image: linear-gradient(90deg, #3861fe 0%, #489bfe 100%);
    }
  }
}
/*sort icon*/
.sort_icon {
  position: relative;
  width: 7px;
  height: 9px;
  margin-left: 2px;
  display: inline-block;
  &::before{
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    left: 0;
    top: -4px;
    border-width: 3px;
    border-style: solid;
    border-color: transparent transparent #dbdbdb transparent;
  }
  &::after{
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    left: 0;
    top: 5px;
    border-width: 3px;
    border-style: solid;
    border-color: #dbdbdb transparent transparent transparent;
  }
  &.sort_up{
    &::before{
      border-color: transparent transparent #1f6aff transparent;
    }
  }
  &.sort_down{
    &::after{
      border-color: #1f6aff transparent transparent transparent;
    }
  }
}

/*板块样式*/
.plate_wrap {
  .data_list_wrap {
    padding: 0 10px;
    .li_header {
      padding: 0 5px;
      background: #f6f7f8;
    }
    .li_item {
      padding: 15px;
      background: #fff;
      font-size: 18px;
      color: #333;
      border-radius: 4px;
      .rela_info  {
        margin-top: 15px;
        padding: 10px;
        background: #f8faff;
        border-radius: 2px;
        font-size: 14px;
        align-items: center;
        text-align: left;
        .field_text {
          margin-top: 7px;
          margin-right: 8px;
          font-size: 11px;
          color: #999;
        }
        .fund_info{
          // width: calc(100% - 72px)
        }
        &ipo_fund_wrap{
          font-size: 15px;
        }
      }
    }
  }
}

.action_btn{
  padding: 0 10px;
  // width: 72px;
  box-sizing: border-box;
  background: #1f6aff;
  color: #fff;
  border-radius: 12px;
  height: 24px;
  font-size: 13px;
  line-height: 24px;
  &[disabled=disabled]{
    background:#b8c3d9;
  }
}

/*  */
.warning {
  font-size: 13px;
  color: #999;
  padding: 14px 0;
  text-align: center;
}
footer {
  margin-top: 15px;
  padding: 0 15px 15px;
  font-size: 12px;
  color: #999;
  text-align: center;
  &.absolute{
    position: absolute;
    bottom: 0;
  }
  .txt{
    align-items: center;
    justify-content: center;
    &::before{
      content: '';
      width: 50px;
      height: 1px;
      background: #dbdbdb;
      display: inline-block;
      margin-right: 15px;
    }
    &::after{
      content: '';
      width: 50px;
      height: 1px;
      background: #dbdbdb;
      display: inline-block;
      margin-left: 15px;
    }
  }
  .copyright{
    margin-top: 10px;
    .ipv6{
      margin-left: 3px;
      border: 1px solid #6296ff;
      border-radius: 1px;
      color: @-color-primary;    
      line-height: 1;
      padding: 0 2px;
    }
  }
}

.fund_rank{
  footer{
    padding-left: 0;
    padding-right: 0;
  }
}

/*搜索*/
.search_box_wrap{
  height: 50px;
  width: 100%;
  box-sizing: border-box;
  .icon{
    display: inline-block;
    background-size: contain;
    vertical-align: middle;
    width: 20px;
    height: 20px;
  }
  .fixed{
    border-radius: 0.26rem 0;
    width: calc(100% - 30px);
    margin: 10px 0;
    background: #f1f1f1;
    .search_box_inner{
      padding: 5px 10px;
      .search_input::-webkit-input-placeholder {
          color: #666;
      }
      .search_icon{
          background-image: url("../images/icon/icon_common_search@2x.png");
      }
      .clear_icon{
          background-image: url("../images/icon/icon_tougu_common_delete@2x.png");
      }
      .search_input{
          padding-left: 5px;
          background: #f1f1f1;
      }
    }
  }
}

.pop{
  width: 160px;
  padding: 5px 10px;
}
// 基金-交易须知
.invest-warning {
  font-size: 13px;
  color: #999;
  padding: 0 15px;
  .dot{
    padding-left: 15px;
    position: relative;
    &::before{
      content: "";
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background-color: #999;
      position: absolute;
      top: 6px;
      left: 0;
    }
  }
}

// 图表legend圆点
.legend_circle {
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 8px;
  display: inline-block;
  vertical-align: 1px;
}

// loading
// bscroll loading
.bscroll_wrappper, .fix_data_list{
  .van-loading{
    background:transparent!important;
    color: #666!important;
    .van-loading__text{
      color: #666!important;
    }
  }
}